package com.one.api.push;

import com.one.api.common.util.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
@EnableAutoConfiguration
@ComponentScan("com.one.api")
public class ApiPushApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(ApiPushApplication.class, args);
        SpringContextUtil.setApplicationContext(applicationContext);
    }
}
